package pe.gob.sunarp.entidad;

import java.io.Serializable;
import javax.persistence.*;

/**
 * The primary key class for the VALQUEUEPARAM database table.
 * 
 */
@Embeddable
public class ValqueueparamPK implements Serializable {
	//default serial version id, required for serializable classes.
	private static final long serialVersionUID = 1L;
	private long valid;
	private long paramnum;

    public ValqueueparamPK() {
    }

	@Column(unique=true, nullable=false)
	public long getValid() {
		return this.valid;
	}
	public void setValid(long valid) {
		this.valid = valid;
	}

	@Column(unique=true, nullable=false)
	public long getParamnum() {
		return this.paramnum;
	}
	public void setParamnum(long paramnum) {
		this.paramnum = paramnum;
	}

	public boolean equals(Object other) {
		if (this == other) {
			return true;
		}
		if (!(other instanceof ValqueueparamPK)) {
			return false;
		}
		ValqueueparamPK castOther = (ValqueueparamPK)other;
		return 
			(this.valid == castOther.valid)
			&& (this.paramnum == castOther.paramnum);

    }
    
	public int hashCode() {
		final int prime = 31;
		int hash = 17;
		hash = hash * prime + ((int) (this.valid ^ (this.valid >>> 32)));
		hash = hash * prime + ((int) (this.paramnum ^ (this.paramnum >>> 32)));
		
		return hash;
    }
}